package com.mes.cloud.api.dto.request.area;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 行政区划表
 * 
 * @author Mr.zhang
 * @email 407892370@qq.com
 * @version 2019-08-01 19:04:28
 */
@Data
public class BaseAreaOrgPageRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "当前页", required = true)
    @NotNull(message = "currentPage不能为空")
    private int currentPage;

    @ApiModelProperty(value = "每页条数", required = true)
    @DecimalMax(value = "1000", message = "pageSize不能超过1000")
    private int pageSize;

    @ApiModelProperty(value = "行政区划ID", required = true)
    @NotEmpty(message = "行政区划ID不能为空")
    private String areaId;

    @ApiModelProperty(value = "组织名称或编码", required = false)
    private String queryString;



}
